<?
	require_once 'Zend/Loader.php';

	Zend_Loader::loadClass('Zend_Gdata');
	Zend_Loader::loadClass('Zend_Gdata_AuthSub');
	Zend_Loader::loadClass('Zend_Gdata_ClientLogin');
	Zend_Loader::loadClass('Zend_Gdata_Docs');

	$client = Zend_Gdata_ClientLogin::getHttpClient("kisekipublisher@gmail.com", "publishkiseki", Zend_Gdata_Docs::AUTH_SERVICE_NAME);
    $docs = new Zend_Gdata_Docs($client);
	$feed = $docs->getDocumentListFeed();

/*	foreach ($feed->entries as $entry) {
		echo "src: ".$entry->content->getSrc()."\n";
	}*/

//	$client->setUri("https://docs.google.com/feeds/download/documents/export/Export?id=18ca_SeXiyxS2niteiOD2GqkVSg8e9Tcq-CeG3rrdCDg");
	$client->setUri("https://docs.google.com/feeds/download/documents/export/Export?id=1QgGAv-pGZvODABiG1pcimTodn0OFpsEID0IIDWscAqs");
	$v=$client->request();

	echo $v;